package cl.coretech.openbravo.translator.gui;

import java.awt.Image;
import java.io.InputStream;

import javax.imageio.ImageIO;
import javax.swing.Icon;
import javax.swing.ImageIcon;

import cl.coretech.util.ResourceLoader;

public class AppAboutData {

	public static final String appName = "Coretech's Openbravo ERP Translator";
	public static final String url = "http://www.coretech.cl";
	public static final String appInfo = "Coretech's Openbravo ERP Translator\n\n"
			+ "Desarrollado por Core Technologies Ltda.\n\n"
			+ "Julio 2008";

	public static Icon getLogoIcon() {
		Icon logoIcon = null;
		try {
			InputStream inputStream = ResourceLoader.loadResource(
					"cl.coretech.resources.coretech", ".png");
			Image image = ImageIO.read(inputStream);
			logoIcon = new ImageIcon(image);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return logoIcon;
	}

}
